const koaRouter = require('@koa/router')
const { create, remove, update, get, getList } = require('../controller/recruitmentController.js')
const { verifAuth } = require('../middleware/login.middleware.js')

const recruitmentRouter = new koaRouter({ prefix: '/recruitment' })
// 增加
recruitmentRouter.post('/', verifAuth, create)
// // 查
recruitmentRouter.get('/:id', get)
recruitmentRouter.get('/', getList)
// // 改
recruitmentRouter.post('/:id', verifAuth, update)
// // 删
recruitmentRouter.delete('/:id', verifAuth, remove)
module.exports = recruitmentRouter
